package com.feng.chat.pojo;


import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;


@AcTable(name = "users",comment = "用户信息表")
public class Users {

    @AcColumn(name = "id",comment = "用户id",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "mobile",defaultValue = "",comment = "手机号",type = ColumnTypeEnums.VARCHAR,length = 255)
    private String mobile;

    @AcColumn(name = "nickName",defaultValue = "",comment = "头像",type = ColumnTypeEnums.VARCHAR,length = 255)
    private String nickName;

    @AcColumn(name = "avatar",comment = "用户头像地址",type = ColumnTypeEnums.VARCHAR,length = 255)
    private String avatar;

    @AcColumn(name = "gender",defaultValue = "0",comment = "用户性别[0:未知;1:男;2:女;]",type = ColumnTypeEnums.TINYINT)
    private Integer gender;

    @AcColumn(name = "password",defaultValue = "",comment = "用户密码",type = ColumnTypeEnums.VARCHAR,length = 255)
    private String password;

    @AcColumn(name = "motto",defaultValue = "",comment = "用户座右铭",type = ColumnTypeEnums.VARCHAR,length = 100)
    private String motto;

    @AcColumn(name = "email",defaultValue = "",comment = "用户邮箱",type = ColumnTypeEnums.VARCHAR,length = 30)
    private String email;

    @AcColumn(name = "is_Robot",defaultValue = "0",comment = "是否机器人[0:否;1:是;]",type = ColumnTypeEnums.TINYINT)
    private Integer isRobot;

    @AcColumn(name = "created_at",comment = "创建时间",type = ColumnTypeEnums.DATETIME)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at",comment = "更新时间",type = ColumnTypeEnums.DATETIME)
    private LocalTime updatedAt;
}